import request from '@/utils/request'

// api地址
const api = {
  open: "api/jmessage/apns/open",
  close: "api/jmessage/apns/close",
};

// ios推送开启
export const pushOpen = (data) => {
  return request.post(
    `${api.open}?uid=${data.uuid}&deviceToken=${data.deviceToken}`,
    {},
    { load: false }
  );
};

// ios推送关闭
export const pushClose = (data) => {
  return request.post(
    `${api.close}?uid=${data.uuid}&deviceToken=${data.deviceToken}`,
    {},
    { load: false }
  );
};